package com.shanzhu.volunteer.interfaces.vo.system.role.converter;

import com.shanzhu.volunteer.interfaces.vo.system.role.RoleVo;
import com.shanzhu.volunteer.modules.system.entity.model.SysRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 角色对象装换器
 *
 * @author: ShanZhu
 * @date: 2023-03-04 16:24:16
 */
@Mapper
public interface RoleVoConverter {

    RoleVoConverter INSTANT = Mappers.getMapper(RoleVoConverter.class);

    /**
     * {@link SysRole} -> {@link RoleVo}
     */
    RoleVo sysRoleToRoleVo(SysRole sysRole);
    List<RoleVo> sysRoleToRoleVo(List<SysRole> sysRoles);

}

  